﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Register.aspx.cs" Inherits="VideoNetApplication.Register" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style> ul {  width:350px;}
    li{float:left; list-style-type:none}
    .control{ padding-left:10px;}
    .wenzi{ width:100px;}
    </style>
    <script src="Js/jquery-1.4.2.min.js" type="text/javascript"></script>
    <script src="Js/jquery.json-2.2.min.js" type="text/javascript"></script>
    <script src="Js/Core.js" type="text/javascript"></script>
    <script src="Js/Main.js" type="text/javascript"></script>
 <script type="text/javascript">
     function CheckPwd() {
         var password = $("[DataField='VU_Password']").val();
         var surepwd = $("[DataField='SurePassWord']").val();
         if (password == "") {
             $("#spPass").html("对不起请输入密码！");
             return;
         } else { $("#spPass").html(""); }
         if (surepwd == "") {
             $("#spSure").html("对不起请确认密码！");
             return;
         } else { $("#spSure").html(""); }
         if (password != surepwd) {
             $("#spSure").html("对不起两次输入的密码不一致请检查！");
             return;
         } 
     }
 </script>
</head>
<body>
    <form id="form1" runat="server">
    <div id="regist">
        <ul>
            <li class="wenzi">用户名</li><li class="control">
                <input type="text" runat="server" id="txtUserName"  onblur="VideoNetSchool.Register.Verify('VerifyUserName');" DataField="VU_loginname"/><span id="spUname"></span></li>
            <li class="wenzi">密码</li><li class="control">
                <input type="password" runat="server" id="txtPwd" onblur="CheckPwd();" DataField="VU_Password"/><span id="spPass"></span></li>
            <li class="wenzi">确认密码</li><li class="control">
                <input type="password" runat="server" id="txtSurePwd" onblur="CheckPwd();" DataField="SurePassWord"/><span id="spSure"></span></li>
                 <li class="wenzi">真实姓名</li><li class="control">
                <input type="text" runat="server" id="txtRealName"  DataField="VU_realname" /><span id="spReal"></span></li>
                 <li class="wenzi">手机号码</li><li class="control">
                <input type="text" runat="server" id="txtMobile"  DataField="VU_mobile" /><span id="spMobile"></span></li>
                 <li class="wenzi">Email:</li><li class="control">
                <input type="text" runat="server" id="txtEmail"  DataField="VU_email" /><span id="spEmail"></span></li>
                <li><input type="button" id="btnReg"  value="更改" onclick="VideoNetSchool.Register.Regist();" /></li>
        </ul>
    </div>
    <input type="hidden" id="hfSchoolID" DataField="SchoolID" runat="server" value="1" />
    <div id="loading" style="display:none"><img src="Images/loading.gif" /></div>
    </form>
</body>
</html>
